home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / other / flexcat / contribution / lmake.readme < prev    next >
Text File  |  1999-06-14  |  3KB  |  105 lines

  1.  
  2. LMake
  3.  
  4. Version:         $VER: LMake 1.05 (02.10.97)
  5. Purpose:         Creates Catalogs/Sourcecode
  6. Needs:           Flexcat 1.9 or above
  7. Script needs:    A catalog-description (#?.cd) [see flexcat.guide]
  8.  
  9.  
  10. Template:
  11. =========
  12.  
  13.    BASENAME/A,CAT/S,NOCT/S,SRC/S,SD/K
  14.  
  15.            BASENAME =  The name of the project without extensions.
  16.                        The script will use <name>.cd and create
  17.                        <name>_<language>.ct and <name>.src , if
  18.                        specified by SRC switch
  19.  
  20.            CAT      =  Create <basename>.catalog in
  21.                        locale:catalogs/<language>/
  22.  
  23.            NOCT     =  Do not create or update catalog translation
  24.                        file  (.ct)
  25.  
  26.            SRC      =  Activate Source creation
  27.  
  28.            SD       =  Name of the FlexCat Source-Description
  29.                        (without .sd)
  30.                        This script will then create sourcecode
  31.                        <basename>.src
  32.                        (see Flexcat documentation)
  33.  
  34. How to use #1: Create catalog and .ct
  35. =====================================
  36.  
  37.    First, you have to create a catalog-description (see Flexcat.guide for
  38.    further information). Name this file <programname>.cd
  39.  
  40.    Then, start LMake script with just the basename as an argument
  41.  
  42.    e.g.  LMake MyProg
  43.  
  44.    The LMake script will then open MyProg.cd and create a catalog
  45.    translation file MyProg_<language>.ct in the same directory and a
  46.    catalog-file LOCALE:catalogs/<language>/MyProg.catalog, if the
  47.    argument switch CAT is set.
  48.  
  49.    If NOCT is specified, nothing will happen. Use this switch to
  50.    create just a sourcefile or while testing with incomplete catalog
  51.    descriptions/translations. (Otherwise the "***New" markers may be
  52.    lost)
  53.  
  54.    (The <language> will be replaced by the preferred language-name,
  55.    e.g deutsch, dansk, nederlands, ....
  56.    LMake searches for env:language, so make sure, that this
  57.    environment-variable ist set up correctly)
  58.  
  59.    Example: SetEnv Language deutsch
  60.  
  61. How to use #2: Create source-code from .cd - file
  62. =================================================
  63.  
  64.    Flexcat offers the ability to create source code from just a .cd
  65.    file, so you just can use this in your own projects. All declarations
  66.    LibOpen etc. are made.
  67.  
  68.    Flexcat comes with a whole bunch of predefined source-descriptions (.sd)
  69.    [C (For SAS, DICE, GCC, Azec etc),Assembler, AmigaE, Oberon ....]
  70.  
  71.    Those .sd - files can be found in the lib-drawer of the flexcat archive.
  72.  
  73.    To create a .ct and a source:
  74.  
  75.       LMake <basename> SRC SD=<source description>
  76.  
  77.    To create a .ct , a catalog and a source:
  78.  
  79.       LMake <basename> CAT SRC SD=<source description>
  80.  
  81.    To create a source only:
  82.  
  83.       LMake <basename> NOCT SRC SD=<source description>
  84.  
  85.    <source description> is the name  of  the  source  description  in  /lib
  86.    without the .sd extension!!!!!!
  87.  
  88.    Example:
  89.  
  90.    LMake MyProg SRC SD=AutoC_c
  91.  
  92.    You have to specify both SRC and SD=xxxx to create a source code!
  93.  
  94.    Name of the source is <Progname>.src
  95.  
  96.  
  97. Author:
  98. =======
  99.  
  100. Kai Norhausen
  101. Gueldenwerth 20
  102. D 42857 Remscheid
  103. EMAil kn@line.org
  104.  
  105.